package models.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class CategoryEntity implements Serializable {

    public int id;

    public String title;
    public int parentCategoryId = 0;
    public String distributorId;

    public int rangeStart;

    public int rangeEnd;
    public int productCount;
    public List<CategoryEntity> categories = new ArrayList<CategoryEntity>();
    public int level;
    public List<CategoryEntity> parents;
    public List<CategoryAliasEntity> aliases;

    public CategoryEntity() {
    }

    public CategoryEntity(String title) {
        this.title = title;
    }

    public CategoryEntity(String title, int parentCategoryId) {
        this.parentCategoryId = parentCategoryId;
        this.title = title;
    }
}
